<?php 

/** 
* Start the session 
*/
session_start();

/** 
* Stores the session name
*/
$_SESSION['name'] = session_name();

/** 
* Stores the session id
*/
$_SESSION['id'] = session_id();

/** 
* Stores the SID for use in uris
*/
$_SESSION['sid'] = $_SESSION['name']."=".$_SESSION['id'];


if (isset($_COOKIE['licodebug']) && intval($_COOKIE['licodebug']) == 1) {
   echo "session_id: ".session_id();
}


$exclude = array('mcert', 'cert', 'api');

if (!isset($_REQUEST['c']) || trim($_REQUEST['c']) == "") {
	$_REQUEST['c'] = "main";
  $include = "main.inc.php";
} else {
  $include = trim($_REQUEST['c']);
  $include = strip_tags($include);
  $include = str_replace(".", "", $include);
  $include = str_replace("/", "", $include);
  $include = $include.".inc.php";
}

if (!in_array($_REQUEST['c'], $exclude)) {
  include ('./_header.php');
}


include ('./'.$include); 


if (!in_array($_REQUEST['c'], $exclude)) {
  include ('./_footer.php'); 
}





?>